package com.hospital.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hospital.entity.PrescriptionDetail;
import java.util.List;

/**
 * 处方明细服务接口
 */
public interface PrescriptionDetailService extends IService<PrescriptionDetail> {
    
    /**
     * 根据处方ID获取处方明细列表
     */
    List<PrescriptionDetail> getByPrescriptionId(Long prescriptionId);
    
    /**
     * 批量保存处方明细
     */
    boolean saveBatch(List<PrescriptionDetail> details);
    
    /**
     * 删除处方的所有明细
     */
    boolean deleteByPrescriptionId(Long prescriptionId);
    
    /**
     * 更新处方明细
     */
    boolean updatePrescriptionDetails(Long prescriptionId, List<PrescriptionDetail> details);
} 